import axios from '../../axios'
const INSURANCETYPE = '/insuranceType';
const insuranceTypeApi = {
    addinsurance(data) {
        return axios({
            url: INSURANCETYPE + '/addInsurances',
            method: 'post',
            data
        })
    },
    lgetAllInsurances(){
        return axios({
            url:INSURANCETYPE + '/lgetAllInsurances',
            method:'get',
        })
    },
    deleteInsurances(_id){
        return axios({
            url:INSURANCETYPE + '/deleteInsurances',
            method:'post',
            data:{_id}
        })
    },

    getinsurance(){
        return axios({
            url:'/insurance/getInsurance',
            method:'get', 
        })
    },
    getUpInsurances(_id){
        return axios({
            url:INSURANCETYPE + '/getUpInsurances',
            method:'get',
            params:{_id}
        })
    },
    sureUpInsurance(sa){
        return axios({
            url:INSURANCETYPE +'/sureUpInsurance',
            method:'post',
            data:sa
        })
    }
}

export default insuranceTypeApi;